package cool.houge.ws.packet;

import com.dslplatform.json.CompiledJson;
import lombok.AccessLevel;
import lombok.Data;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 错误包.
 *
 * @author ZY (kzou227@qq.com)
 */
@Data
@Accessors(chain = true)
@CompiledJson
public class ErrorPacket {

  /** 命名空间. */
  @Setter(AccessLevel.NONE)
  private Namespaces ns = Namespaces.ERROR;
  /** 错误代码. */
  private int code;
  /** 错误描述. */
  private String message;
}
